#ifndef SPHERE_H_
#define SPHERE_H_

#include "image.h"
#include "object3d.h"
#include "../d_Math/d_Math.h"

using namespace d_Math;

class Sphere : Object3D
{
public:
	Sphere(d_Vec3f c, float r, Material *mat);
	~Sphere();
	bool intersect(const Ray &r, Hit &h, float tmin);
	bool inside(d_Vec3f point);
protected:
	d_Vec3f center;
	float radius;
};

#endif /*SPHERE_H_*/
